<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-payRecords-edit" th:object="${payRecords}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">商户号，对应appid：</label>
                <div class="col-sm-8">
                    <input id="appid" name="appid" th:field="*{appid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">实际⽀付⾦额（单位：分）：</label>
                <div class="col-sm-8">
                    <input id="fee" name="fee" th:field="*{fee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">透传参数，对应于transp：</label>
                <div class="col-sm-8">
                    <input id="orderid" name="orderid" th:field="*{orderid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">我司⽣成的订单流⽔号：</label>
                <div class="col-sm-8">
                    <input id="pdorderid" name="pdorderid" th:field="*{pdorderid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">外部订单流⽔号（如⽀付宝⽣成的流⽔号）：</label>
                <div class="col-sm-8">
                    <input id="chorderid" name="chorderid" th:field="*{chorderid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">⾦额单位，固定为"fen"：</label>
                <div class="col-sm-8">
                    <input id="unit" name="unit" th:field="*{unit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态，success：</label>
                <div class="col-sm-8">
                    <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">⽀付时间（格式：yyyy-MM-dd HH:mm:ss）：</label>
                <div class="col-sm-8">
                    <input id="time" name="time" th:field="*{time}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">String ⽀付⽅式,如"⽀付宝wap"：</label>
                <div class="col-sm-8">
                    <input id="paytype" name="paytype" th:field="*{paytype}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">String md5(appid + orderid + fee + unit + status + paytype + key)：</label>
                <div class="col-sm-8">
                    <input id="sign" name="sign" th:field="*{sign}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/payRecords"
		$("#form-payRecords-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-payRecords-edit').serialize());
			}
		});
	</script>
</body>
</html>
